package com.yzkj.cpjxc.business.domain;

import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * 多媒体文件
 */
@Alias("Multimedia")
public class Multimedia extends CommonBean<Multimedia> {

	private static final long serialVersionUID = -4853964991864222683L;

	/**
	 * UUID代理键
	 */
	private String uuid;

	/**
	 * FK_UUID关联外键
	 */
	private String fkUuid;

	/**
	 * USER_NAME上传用户
	 */
	private String userName;

	/**
	 * CREATE_TIME上传时间
	 */
	private Date createTime;

	/**
	 * OID_FILE_NAME源文件名
	 */
	private String oidFileName;

	/**
	 * NEW_FILE_NAME新文件名
	 */
	private String newFileName;

	/**
	 * FILE_PATH文件保存路径
	 */
	private String filePath;

	/**
	 * FILE_SIZE文件大小
	 */
	private Long fileSize;

	/**
	 * CONTENT_TYPE文件类型
	 */
	private String contentType;

	/**
	 * FILE_DATA文件数据（二进制文件存储）
	 */
	private byte[] fileData;

	/**
	 * DATA_STATE数据状态0：临时1：长期
	 */
	private String dataState;

	/**
	 * IS_ACTIVE有效状态1：有效0 ：无效
	 */
	private String isActive;
	
	/**
	 * UPDATE_TIME更新时间
	 */
	private Date updateTime;

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getFkUuid() {
		return fkUuid;
	}

	public void setFkUuid(String fkUuid) {
		this.fkUuid = fkUuid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getOidFileName() {
		return oidFileName;
	}

	public void setOidFileName(String oidFileName) {
		this.oidFileName = oidFileName;
	}

	public String getNewFileName() {
		return newFileName;
	}

	public void setNewFileName(String newFileName) {
		this.newFileName = newFileName;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public Long getFileSize() {
		return fileSize;
	}

	public void setFileSize(Long fileSize) {
		this.fileSize = fileSize;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}
	
	public byte[] getFileData() {
		return fileData;
	}

	
	public void setFileData(byte[] fileData) {
		this.fileData = fileData;
	}

	public String getDataState() {
		return dataState;
	}

	public void setDataState(String dataState) {
		this.dataState = dataState;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

	@Override
	public String toString() {
		return "Multimedia [ uuid=" + uuid + ", fkUuid=" + fkUuid + ", userName=" + userName + ", createTime=" + createTime + ", oidFileName=" + oidFileName + ", newFileName=" + newFileName + ", filePath=" + filePath + ", fileSize=" + fileSize + ", contentType=" + contentType + ", fileData=" + fileData + ", dataState=" + dataState + ", isActive=" + isActive + "]";
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}